import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:mandoby/config/theme/app_decoration.dart';
import 'package:mandoby/core/app_export.dart';
import 'package:mandoby/core/utils/app_colors.dart';
import 'package:mandoby/core/widgets/app_bar/custom_app_bar.dart';
import 'package:mandoby/core/widgets/custom_bottom_bar.dart';
import 'package:mandoby/core/widgets/custom_elevated_button.dart';
import 'package:mandoby/core/widgets/custom_scaffold_widget.dart';

class MyRequestsScreen extends StatelessWidget {
  const MyRequestsScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CustomScaffoldWidget(
      screenPadding: EdgeInsets.symmetric(horizontal: 16.w),
      appBar: const CustomAppBar(),
      decoration: AppDecoration.withMapImage,
      body: ListView(children: [
        30.hs,
        Text("تتبع حالة الطلب", style: CustomTextStyles.font15black500,).animate().slideX(),
        10.hs,
        Center(child: Text("طلبي",
          style: CustomTextStyles.font32W700Black.copyWith(
              color: AppColors.black55),)).animate().slideY().shake(duration: 650.ms),
        20.hs,
        ...List.generate(5, (index) =>
            ListTile(
              contentPadding: EdgeInsets.zero,
              horizontalTitleGap: 0,
              dense: true,
              leading: CustomImageView(imagePath: AppAssets.imgRectangle49,height: 28.h,width: 28.w,),
              title: Text("تم تقديم طلب الالتحاق",style: CustomTextStyles.font20black66500),).animate().slideY(duration: ((index*2)*100).ms)),
        50.hs,
        CustomElevatedButton(text: "اكمل البيانات لتقديم الطلب",margin: EdgeInsets.symmetric(horizontal: 16.w),)

      ]),
      navBar: const CustomBottomBar(selectedIndex: 2),
    );
  }
}
